package edu.upn.sowad.proyecto.dao;

import java.sql.DriverManager;
import java.sql.Connection;

public class Conexion 
{
    public static Connection getConexion()
    {
        try 
        {
            Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
            Connection conexion = DriverManager.getConnection("jdbc:sqlserver://localhost;databaseName=Pedidos", "jhordanr", "123");
            return conexion;
        } 
        catch (Exception ex) 
        {
            ex.printStackTrace();
            return null;
        }
    }
}